package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据监测对象 t_data_hour
 * 
 * @author 小卤
 * @date 2025-04-04
 */
public class Data extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 数据id */
    private Long dataId;

    /** 站点id */

    private Long stationId;

    @Excel(name = "站点名称")
    private String stationName;

    /** 监测时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "监测时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    /** 降雨 */
    @Excel(name = "降雨")
    private Double rain;

    /** 温度 */
    @Excel(name = "温度")
    private Double temperature;

    /** 气压 */
    @Excel(name = "气压")
    private Double pressure;

    /** 湿度 */
    @Excel(name = "湿度")
    private Double humidity;

    /** 水位 */
    @Excel(name = "水位")
    private Double water;

    public void setDataId(Long dataId)
    {
        this.dataId = dataId;
    }

    public Long getDataId() 
    {
        return dataId;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public void setStationId(Long stationId)
    {
        this.stationId = stationId;
    }

    public Long getStationId() 
    {
        return stationId;
    }

    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    public void setRain(Double rain)
    {
        this.rain = rain;
    }

    public Double getRain()
    {
        return rain;
    }

    public void setTemperature(Double temperature)
    {
        this.temperature = temperature;
    }

    public Double getTemperature()
    {
        return temperature;
    }

    public void setPressure(Double pressure)
    {
        this.pressure = pressure;
    }

    public Double getPressure()
    {
        return pressure;
    }

    public void setHumidity(Double humidity)
    {
        this.humidity = humidity;
    }

    public Double getHumidity()
    {
        return humidity;
    }

    public void setWater(Double water)
    {
        this.water = water;
    }

    public Double getWater()
    {
        return water;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dataId", getDataId())
            .append("stationId", getStationId())
            .append("time", getTime())
            .append("rain", getRain())
            .append("temperature", getTemperature())
            .append("pressure", getPressure())
            .append("humidity", getHumidity())
            .append("water", getWater())
            .toString();
    }
}
